<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<!-- <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script> -->
		<script src="js/vue.js"></script>
	</head>
	<body>
		
		<div id="app">
			{{msg}}
			<button v-on:click="doit()">ok</button>	
			<button @click="changeFood()">no</button>	
		
		</div>		
		<script>
		var app=new Vue({
			el:"#app",
			data:{
				msg:"我今天中午想吃烤肉"				
			},
			methods:{
				changeFood:function(){
					this.msg="不，你不想！"
				},
				doit:function(){
					this.msg="好的！马上为您烹饪！"
				}
				
				
			}
		})
		
		
		</script>
	</body>
</html>
